import 'package:flutter/material.dart';
import 'package:wanandroid_flutter/ui/webview_page.dart';

class RouterPush {
  static void toWebview(BuildContext context, String title, String link) async {
    await Navigator.of(context).push(MaterialPageRoute(
        builder: (context) => WebViewPage(title: title, url: link)));
  }
}
